﻿@model Consumer.Models.CourseViewModel

@{
    ViewBag.Title = Model.Course.Name;
    ViewBag.ReturnUrl = Url.Action("Index", "Home", null);
    ViewBag.ReturnLabel = "Courses";
}

@if (!Model.Course.Assignments.Any())
{
    <text>There are no assignments yet.</text>
}
else
{
    <ul data-role="listview" data-filter="true">

    @foreach (var assignment in Model.Course.Assignments)
    {
        @Html.Action("CourseAssignment", new { id = assignment.AssignmentId })
    }

    </ul>
}
